package com.be.beadmin.device.entity;

import com.be.beadmin.common.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import java.util.Date;

import javax.persistence.*;

@Entity
@Getter
@Setter
@Table(name="t_de_ehs_item")
public class EhsItem extends BaseEntity {
    @Column(name = "identification",columnDefinition = "VARCHAR(50) COMMENT '唯一标识'")
    private String identification;

    @Column(name = "item_name",columnDefinition = "VARCHAR(20) COMMENT '检查项目'")
    private String itemName;

    @Column(name = "item_desc",columnDefinition = "VARCHAR(200) COMMENT '检查描述'")
    private String itemDesc;

    @Column(name = "item_result",columnDefinition = "VARCHAR(20) COMMENT '检查结果'")
    private String itemResult;

    @Column(name = "issue",columnDefinition = "VARCHAR(200) COMMENT '问题描述'")
    private String issue;

    @Column(name = "measure",columnDefinition = "VARCHAR(200) COMMENT '解决办法'")
    private String measure;

    /**
     * 未开始、整改、已完成
     */
    @Column(name = "item_state",columnDefinition = "VARCHAR(20) COMMENT '检查状态'")
    private String itemState;

    @Column(name = "notes",columnDefinition = "VARCHAR(200) COMMENT '备注'")
    private String notes;

    @Column(name = "check_id",columnDefinition = "VARCHAR(20) COMMENT '检查单号'  not null")
    private String checkId;

    @Column(name = "template_id",columnDefinition = "VARCHAR(20) COMMENT '模板编码'")
    private String templateId;

    /**
     * 是(Y)、否(N)
     */
    @Column(name = "is_attached",columnDefinition = "VARCHAR(10) COMMENT '是否需要附件'")
    private String isAttached;
}
